﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Maticsoft.Web.wap.Default" %>

<%@ Register src="footer2.ascx" tagname="footer2" tagprefix="uc1" %>
<%@ Register src="footer.ascx" tagname="footer" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <!--#include file="include/head.htm"-->
    <script type="text/javascript">
        function Search() {
            if ($("#txtKey").val() == "") {
                alert("请输入关键字");
                return;
            }

            window.location.href = "Search.aspx?key=" + escape($("#txtKey").val());
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <header class="mui-bar">
			<h1 class="mui-title"><img src="img/icons-top-logo.png"></h1>
		</header>
    <div class="mui-content pad-btm-60">
        <div id="slider" class="mui-slider">
            <div class="mui-slider-group mui-slider-loop" id="divAd" runat="server">
                
            </div>
            <div class="mui-slider-indicator">
                <div class="mui-indicator mui-active">
                </div>
                <div class="mui-indicator">
                </div>
                <div class="mui-indicator">
                </div>
                <div class="mui-indicator">
                </div>
                <div class="mui-indicator">
                </div>
            </div>
        </div>
        <div class="mui-input-group" style="margin: 10px 0 10px 0;">
            <div class="mui-input-row">
                <input type="text" class="mui-input-clear" style="width:100%;float:left;" placeholder="请输入关键字" id="txtKey" />
                <button type="button" style="padding:0px; margin-left:-41px; z-index:100;width:40px; height:40px;" onclick="Search();"><img src="/img/search-btn-bg.png" /></button>
            </div>
        </div>
        <div class="mui-row bg-white pad-10 icons-link">
            <div class="mui-col-xs-3 mui-pull-left mui-text-center">
                <a href="ProductCategory.aspx">
                    <img src="img/icons-link-01.png">
                    <h5 class="tc-gray">
                        商品分类
                    </h5>
                </a>
            </div>
            <div class="mui-col-xs-3 mui-pull-left mui-text-center">
                <a href="UserOrderList.aspx">
                    <img src="img/icons-link-02.png">
                    <h5 class="tc-gray">
                        我的订单</h5>
                </a>
            </div>
            <div class="mui-col-xs-3 mui-pull-left mui-text-center">
                <a href="ProductSale.aspx">
                    <img src="img/icons-link-03.png">
                    <h5 class="tc-gray">
                        销售排行</h5>
                </a>
            </div>
            <div class="mui-col-xs-3 mui-pull-left mui-text-center">
                <a href="NewsList.aspx">
                    <img src="img/icons-link-04.png">
                    <h5 class="tc-gray">
                        通知公告</h5>
                </a>
            </div>
        </div>
        <div class="goods-box">
            <div class="mui-row">
                <div class="mui-col-xs-6 mui-pull-left pad-5-10">
                    <h4 class="good-tit tc-black">
                        热门产品</h4>
                </div>
                <div class="mui-col-xs-6 mui-pull-left mui-text-right pad-5-10">
                    <a class="mui-h6 good-link tc-lgray" href="ProductHot.aspx" style="line-height: 33px;">更多></a>
                </div>
            </div>
            <div class="mui-row good-list">
                <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                <div class="mui-col-xs-6 mui-pull-left">
                    <div class="good-mes bg-white">
                        <div class="good-img">
                            <img src="/uploadpic/<%#Eval("pic") %>" onclick="window.location.href='ProductDetail.aspx?cid=<%#Eval("categoryId") %>&id=<%#Eval("productId") %>'"></div>
                        <h5 class="mui-ellipsis-2 tc-black">
                            <%#Eval("ProductName") %></h5>
                        <div class="mui-row">
                            <h4 class="tc-red mui-pull-left">
                                <%#Maticsoft.Common.DigitHelper.GetDecimal(Eval("SalePrice")).ToString("f2") %></h4>
                            <button style="display:none">
                                加入购物车</button>
                        </div>
                    </div>
                </div>
                </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
        <uc1:footer2 ID="footer21" runat="server" />
    </div>
    <uc2:footer ID="footer22" runat="server" />
    </form>
</body>
</html>
<script type="text/javascript" charset="utf-8">
    var gallery = mui('.mui-slider');
    gallery.slider({
        interval: 0 //自动轮播周期，若为0则不自动播放，默认为0；
    });
    (function () {
        $('.btm-box .mui-col-xs-3').click(function () {

            $(this).children('h6').css({
                'color': '#e4393c'
            });
        })
    })
	</script>
